package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyMovieThumbsUpMapper;
import com.ruoyi.system.domain.HyMovieThumbsUp;
import com.ruoyi.system.service.IHyMovieThumbsUpService;

/**
 * 用户影视点赞Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-23
 */
@Service
public class HyMovieThumbsUpServiceImpl implements IHyMovieThumbsUpService 
{
    @Autowired
    private HyMovieThumbsUpMapper hyMovieThumbsUpMapper;

    /**
     * 查询用户影视点赞
     * 
     * @param thumbsUpId 用户影视点赞主键
     * @return 用户影视点赞
     */
    @Override
    public HyMovieThumbsUp selectHyMovieThumbsUpByThumbsUpId(Long thumbsUpId)
    {
        return hyMovieThumbsUpMapper.selectHyMovieThumbsUpByThumbsUpId(thumbsUpId);
    }

    /**
     * 查询用户影视点赞列表
     * 
     * @param hyMovieThumbsUp 用户影视点赞
     * @return 用户影视点赞
     */
    @Override
    public List<HyMovieThumbsUp> selectHyMovieThumbsUpList(HyMovieThumbsUp hyMovieThumbsUp)
    {
        return hyMovieThumbsUpMapper.selectHyMovieThumbsUpList(hyMovieThumbsUp);
    }

    /**
     * 新增用户影视点赞
     * 
     * @param hyMovieThumbsUp 用户影视点赞
     * @return 结果
     */
    @Override
    public int insertHyMovieThumbsUp(HyMovieThumbsUp hyMovieThumbsUp)
    {
        return hyMovieThumbsUpMapper.insertHyMovieThumbsUp(hyMovieThumbsUp);
    }

    /**
     * 修改用户影视点赞
     * 
     * @param hyMovieThumbsUp 用户影视点赞
     * @return 结果
     */
    @Override
    public int updateHyMovieThumbsUp(HyMovieThumbsUp hyMovieThumbsUp)
    {
        return hyMovieThumbsUpMapper.updateHyMovieThumbsUp(hyMovieThumbsUp);
    }

    /**
     * 批量删除用户影视点赞
     * 
     * @param thumbsUpIds 需要删除的用户影视点赞主键
     * @return 结果
     */
    @Override
    public int deleteHyMovieThumbsUpByThumbsUpIds(Long[] thumbsUpIds)
    {
        return hyMovieThumbsUpMapper.deleteHyMovieThumbsUpByThumbsUpIds(thumbsUpIds);
    }

    /**
     * 删除用户影视点赞信息
     * 
     * @param thumbsUpId 用户影视点赞主键
     * @return 结果
     */
    @Override
    public int deleteHyMovieThumbsUpByThumbsUpId(Long thumbsUpId)
    {
        return hyMovieThumbsUpMapper.deleteHyMovieThumbsUpByThumbsUpId(thumbsUpId);
    }
}
